package whf.framework.report.export.filter;

import java.io.DataOutputStream;
import java.io.IOException;
import java.io.OutputStream;

import javax.servlet.ServletOutputStream;

public class ServletOutputStreamWrapper extends ServletOutputStream {

    private DataOutputStream stream;

    public ServletOutputStreamWrapper(OutputStream output) {
        stream = new DataOutputStream(output);
    }

    public void write(int b)
            throws IOException {
        stream.write(b);
    }

    public void write(byte[] b)
            throws IOException {
        stream.write(b);
    }

    public void write(byte[] b, int off, int len)
            throws IOException {
        stream.write(b, off, len);
    }

}
